﻿<?php
/*
 * @Author Akos Szabo - Axi
 * @Created on Oct 9, 2011
 * @Project: ujej
 * @Description:
 * 
 */

//PHP setup
//switch off the transfered error display
ini_set("display_errors","OFF"); //OFF


//Initials
session_start(); 

$DEBUG=1;


include_once 'mysql_dbase.php'; //DB handler include
include_once 'tools.php'; //Collection of tools
include_once 'user_handler.php'; //user related functions

if($DEBUG==1)
{
	//show the POST array
	writeLog("POST array\n");
	foreach( $_POST as $key => $value)
	{
		writeLog("$key=$value\n");
	}	
	//show the POST array
	writeLog("GET array\n");
	foreach( $_GET as $key => $value)
	{
		writeLog("$key=$value\n");
	}	
	
	//show the Session array
	writeLog("SESSION array\n");
	foreach( $_SESSION as $key => $value)
	{
		writeLog("$key=$value\n");
	}	
	
	writeLog("Mobile type " . getMobileType());
	writeLog("dátum: ".time()."\n");
}

//create db handler
//$dbh = new mysql_dbase("ujej", "localhost", "ujej", "Ujej123");
$dbh = new mysql_dbase();
$dbh->connect();


$cmd = $_GET['cmd'];
 
?>
